package com.yida.system.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @Description 系统数据接入配置新增参数
 * @Author wws
 * @Date 2023-04-04
 */
@ApiModel("系统数据接入配置新增参数")
public class SysDataPutInConfigSaveRequest {

    @ApiModelProperty("配置名称")
    @Size(max = 64,message = "配置名称不得超过64个字符")
    private String configName;

    @ApiModelProperty("配置键（参照SysDataPutIntConfigEnum）")
    @Size(max = 64,message = "配置键不得超过64个字符")
    @NotBlank(message = "配置键不得为空")
    private String configKey;

    @ApiModelProperty("IP地址")
    @Size(max = 128,message = "IP地址不得超过128个字符")
    @NotBlank(message = "IP地址不得为空")
    private String ipUrl;

    @ApiModelProperty("厂商主键")
    @NotNull(message = "厂商主键不能为空")
    private Long companyId;

    @ApiModelProperty("公钥")
    private String publicKey;

    @ApiModelProperty("私钥")
    private String privateKey;

    public String getConfigName() {
        return configName;
    }

    public void setConfigName(String configName) {
        this.configName = configName;
    }

    public String getConfigKey() {
        return configKey;
    }

    public void setConfigKey(String configKey) {
        this.configKey = configKey;
    }

    public String getIpUrl() {
        return ipUrl;
    }

    public void setIpUrl(String ipUrl) {
        this.ipUrl = ipUrl;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getPublicKey() {
        return publicKey;
    }

    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("SysDataPutInConfigSaveRequest{");
        sb.append("configName='").append(configName).append('\'');
        sb.append(", configKey='").append(configKey).append('\'');
        sb.append(", ipUrl='").append(ipUrl).append('\'');
        sb.append(", companyId=").append(companyId);
        sb.append(", publicKey='").append(publicKey).append('\'');
        sb.append(", privateKey='").append(privateKey).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
